/**
 * 
 */
package com.scaffold.commons.exception;

/**
 * @author wangjg
 *
 */
public class ExceptionUtil {
	
	public static String getCauseMessage(Exception e){
		Throwable cause = e;
		while(cause.getCause()!=null){
			cause = cause.getCause();
		}
		return cause.getMessage();
	}
	
}
